﻿<%@ Page Language="C#" MasterPageFile="~/Master/ListMasterPage.master" AutoEventWireup="True" Inherits="Web.ShquserManager_List" Title="" CodeBehind="List.aspx.cs" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@Import namespace="Project.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="title_bar">
        <ul class="tab_nav">
            <li id="current_tab"></li>
        </ul>
    </div>
    <div class="search_bar">
        <div style="width: 100%;">
            <div>
                <div class="label_div"></div>
                <div class="inner_div">
                    年份:<asp:DropDownList runat="server" ID="JhYearDropDownList" AutoPostBack="True" OnSelectedIndexChanged="JhYearDropDownList_SelectedIndexChanged" />
                    计划:<asp:DropDownList runat="server" ID="JhTypeDropDownList" AutoPostBack="True" OnSelectedIndexChanged="JhTypeDropDownList_SelectedIndexChanged" />
                    项目名称:<asp:TextBox ID="txt_Item_name" MaxLength="50" CssClass="t_search" runat="server" />
                    用户名:<asp:TextBox ID="txt_UserName_name" MaxLength="50" CssClass="t_search" runat="server" />
                    单位:<asp:TextBox ID="txt_Shbdwname_name" MaxLength="50" CssClass="t_search" runat="server" />
                    状态:<asp:DropDownList runat="server" ID="CheckQKDropDownList" AutoPostBack="True" OnSelectedIndexChanged="CheckQKDropDownList_SelectedIndexChanged" />
                </div>
                <div class="inner_div">
                    <asp:Button ID="searchButton" runat="server" CssClass="btn_Button" OnClick="searchButton_Click" Text="搜索" />
                </div>
                <div class="search_btn_group">
                    <input type="button" ID="AddButton" Class="btn_Button" OnClick="openWinAANew2('Edit.aspx');return false;" value="添加" />
                </div>
            </div>
        </div>
    </div>
    <div class="tab_box">
        <asp:GridView ID="GridView1" DataKeyNames="Id" CssClass="grid_bd" BorderWidth="0"
            runat="server" AutoGenerateColumns="False" Width="100%" EmptyDataText="没有记录。"
            AllowPaging="True" PageSize="10" AllowSorting="True" OnSorting="GridView1_Sorting"
            OnSorted="GridView1_Sorted" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound">
            <RowStyle CssClass="grid_item" />
            <AlternatingRowStyle CssClass="grid_alt_item" />
            <HeaderStyle CssClass="" />
            <EmptyDataRowStyle CssClass="grid_empty" />
            <PagerSettings Visible="False" />
            <Columns>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="Id" DataField="Id"
                       HeaderText="序号" Visible="false">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:TemplateField HeaderText="序号" ItemStyle-HorizontalAlign="Center" SortExpression="Id">
                    <HeaderStyle CssClass="gd_center" Wrap="false"></HeaderStyle>
                    <ItemTemplate>
                        <span title="<%# Eval("Id") %>"><%# Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex -1)%></span>
                    </ItemTemplate>
                </asp:TemplateField>
               <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="Jhname" DataField="Jhname"
                    HeaderText="计划名称" Visible="false">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:TemplateField HeaderText="计划名称" ItemStyle-HorizontalAlign="Center" SortExpression="Jhname">
                    <HeaderStyle CssClass="gd_center" Wrap="false"></HeaderStyle>
                    <ItemTemplate>
                        <a href="<%# WebHelper.BuildUrl(Request.Url.ToString(),"Jhname",Eval("Jhname")==null?"":Eval("Jhname").ToString())%>"><%#  Eval("Jhname")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="Chshmanagement" DataField="Chshmanagement"
                    HeaderText="处室" Visible="true">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:TemplateField HeaderText="处室" ItemStyle-HorizontalAlign="Center" SortExpression="Chshmanagement" Visible="false">
                    <HeaderStyle CssClass="gd_center" Wrap="false"></HeaderStyle>
                    <ItemTemplate>
                        <a href="<%# WebHelper.BuildUrl(Request.Url.ToString(),"Jhname",Eval("Chshmanagement")==null?"":Eval("Chshmanagement").ToString())%>"><%#  Eval("Chshmanagement")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="Itemname" DataField="Itemname"
                    HeaderText="项目名称" Visible="true">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="Itempeople" DataField="Itempeople"
                    HeaderText="负责人" Visible="true" ItemStyle-Wrap="false">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="Itempeopletel" DataField="Itempeopletel"
                    HeaderText="联系人电话" Visible="false">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="Tjdwsort" DataField="Tjdwsort"
                    HeaderText="推荐单位类别" Visible="false">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="Tjdwname" DataField="Tjdwname"
                    HeaderText="推荐单位" Visible="false">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="Company" DataField="Company"
                    HeaderText="申报单位" Visible="true">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="USERNAME" DataField="USERNAME"
                    HeaderText="申报人帐号" Visible="false">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="Checkqk" DataField="Checkqk"
                    HeaderText="审核状态" Visible="true">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="Jhyear" DataField="Jhyear"
                    HeaderText="年限" Visible="true">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="UpdateDate" DataField="UpdateDate"
                    HeaderText="更新时间" Visible="false" DataFormatString="{0:yyyy-MM-dd}">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-HorizontalAlign="center" SortExpression="PdfExportDate" DataField="PdfExportDate"
                    HeaderText="PDF 导出时间" Visible="false" DataFormatString="{0:yyyy-MM-dd}">
                    <HeaderStyle CssClass="gd_center"></HeaderStyle>
                </asp:BoundField>
                <asp:TemplateField HeaderText="编辑" ItemStyle-HorizontalAlign="Center">
                    <HeaderStyle Width="40px" CssClass="gd_center"></HeaderStyle>
                    <ItemTemplate>
                        <a href="Edit.aspx?ID=<%# Eval("Id") %>" onclick="openWinAANew2('Edit.aspx?id=<%# Eval("Id") %>');return false;"><img src="../@Images/Button/edit.gif" alt="编辑" title="编辑"/></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除" ItemStyle-HorizontalAlign="Center" Visible="true">
                    <HeaderStyle Width="40px" CssClass="gd_center"></HeaderStyle>
                    <ItemTemplate>
                        <asp:ImageButton ID="DeleteLink" CommandName="DeleteIt" CommandArgument='<%# Eval("Id") %>'
                            ImageUrl="~/@Images/Button/del.gif" runat="server" OnClientClick="return confirm('确定要删除此项？');" ></asp:ImageButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div class="grid_ft">
        <div id="pagerDiv" runat="server">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Left" OnPageChanging="AspNetPager1_PageChanging"
                PageSize="10" ShowPageIndex="True" UrlPageIndexName="img" UrlPaging="False" Width="780px"
                PagingButtonType="Text" ImagePath="../Images/Pager/" ButtonImageNameExtension="n"
                ButtonImageExtension=".gif" DisabledButtonImageNameExtension="g" PagingButtonSpacing="8px"
                ShowCustomInfoSection="Left" CustomInfoHTML="记录总数：%RecordCount% &nbsp;当前页：<font color='red'>%currentPageIndex%</font> &nbsp;总页数：%pageCount%"
                EnableTheming="True" CustomInfoSectionWidth="35%" FirstPageText="首页" LastPageText="末页"
                NextPageText="下一页" PrevPageText="上一页" AlwaysShow="True" SubmitButtonText="跳转"
                SubmitButtonClass="btn_clear">
            </webdiyer:AspNetPager>
        </div>
    </div>
</asp:Content>
                

